<?php
    $product = $data['Product'];
    $group   = $data['Group'];
?>

<?= $this->Html->meta(array(
    'property' => 'og:image',
    'content'  => Router::url('/img/products/' . $group['id'] . '/' . $product['image'], true)
), '', array( 'inline' => false)) ?>
<?= $this->Html->meta(array(
    'property' => 'og:title',
    'content'  => sprintf("%s » %s", $Settings->name, $product['name'])
), '', array( 'inline' => false)) ?>
<?= $this->Html->meta(array(
    'property' => 'og:url',
    'content'  => Router::url('/proizvod/' . $product['id'] . '/'.
                                             urlize($group['name']) . '/'.
                                             urlize($product['name']), true)
), '', array( 'inline' => false)) ?>
<?= $this->Html->meta(array(
    'property' => 'og:description',
    'content'  => $product['description']
), '', array( 'inline' => false)) ?>

<h1>
    <a class="fb-button" href="javascript:void(0)" onclick="fbShare();">Pošalji</a>
    <span class="breadcrumb">
        <?= $this->Html->link($group['name'], '/proizvodi/' . urlize($group['name']) . '/' . $group['id']) ?>
        &raquo;
    </span>
    <?= $product['name'] ?>
</h1>
<p>
    <?= $this->Html->image('products/' . $group['id'] . '/' . $product['image'] . '?w=720&wm=1') ?>
</p>